
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.tss.util.*"%>
<%@page import="com.jedi.*"%>
<%@page import="com.store.*"%>
<%@page import="java.util.*"%>
<%@page import="java.text.*"%>
<%@include file="../global_var.jsp"%>
<%@include file="../check_login.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
User just_user = (User)session.getAttribute("LoginUser");

User user = (User)session.getAttribute("LoginUser");
ArticleMgr articleMgr = new ArticleMgr();
List list = null;
String list_title = "我的文档";
%>
<html>
<head>
    <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="style/main.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/common.js"></script>
<script language="javascript">
function clk_artcle_show(article_id) {
	location.href = "know_article_my_modi.jsp?article_id=" + article_id;
}
</script>
</head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td >
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="31" valign="top" background="images/title_bk_01.gif" style="padding-left:10px;padding-top:6px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="50%" style="color:#FFFFFF;font-size:13px;">
                  <b>知识库</b> -&gt; 
                  <b><%=list_title%></b>
                </td>
                <td width="50%" align="right" style="padding-right:10px;">&nbsp;
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td height="100" align="right" valign="top" style="padding-top:12px;padding-bottom:10px;padding-right:5px;"> 
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
              <tr bgcolor="#858585" align="center"> 
                <td height="24" width="40%" style="color:#FFFFFF;"><b>文档标题</b></td>
                <td width="23%" style="color:#FFFFFF;"><b>发布时间</b></td>
                <td width="18%" style="color:#FFFFFF;"><b>所属分类</b></td>
                <td width="10%" style="color:#FFFFFF;"><b>点击数</b></td>
                <td width="10%" style="color:#FFFFFF;"><b>操作</b></td>
              </tr>
              <%
              String otherSQL = " and a.author_id = '" + user.getId() + "'";
              String orderField = "a.category_id,issue_time desc";
              articleMgr.setTopNum(-1);
              list = articleMgr.get(otherSQL,orderField);
              if (list != null && list.size() > 0) {
              	String bgColor[] = {"#EDEDF0","#D7D7DB"};
              	for(int i=0;i<list.size();i++) {
              		Article item = (Article)list.get(i);
              %>
              <tr bgcolor="<%=bgColor[i%2]%>" align="center"> 
                <td height="24"><a href="knowledge_mgt/know_article_my_show.jsp?article_id=<%=item.getId()%>"><%=item.getArticleTitle()%></a></td>
                <td><%=item.getIssueTime()%></td>
                <td><%=item.getCategory().getCategoryName()%></td>
                <td><%=item.getHit()%></td>
                <td><span onclick="clk_artcle_show('<%=item.getId()%>');" style="cursor:hand;text-decoration: underline;">操作</span></td>
              </tr>
              <%}}%>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>